import {
  ClassSerializerInterceptor,
  Controller,
  Get,
  UseInterceptors,
} from '@nestjs/common';
import { StaffService } from './staff.service';
import { CommonResponseInterceptor } from '../../helper/interceptor/CommonResponse.interceptor';

@Controller('staff')
@UseInterceptors(ClassSerializerInterceptor, CommonResponseInterceptor)
export class StaffController {
  constructor(private readonly staffService: StaffService) {}

  @Get('/list')
  async getStaffList() {
    return await this.staffService.allStaffs();
  }
}
